<?php
/**
 * Created by PhpStorm.
 * User: ahao
 * Email: 827316006@qq.com
 * Date: 2019/12/3 23:22
 */

go(function () {
    $client = new Swoole\Coroutine\Http\Client('seller-api.chujiaxinxuan.com','80');
    $client->set([
        'timeout' => 1,
    ]);
    $client->get("/hello/name");

    print_r($client->body);
    print_r($client->statusCode);
    $client->close();
});